#ifndef CONFIGMANAGER_H
#define CONFIGMANAGER_H

#include <QSettings>
#include <QFont>
#include <QString>
#include "ThemeManager.h"

class ConfigManager : public QObject
{
    Q_OBJECT
public:
    static ConfigManager& instance();

    void setEditorFont(const QFont& font);
    QFont getEditorFont(const QFont& defaultFont = QFont("Consolas", 10));

    void setLastTheme(ThemeManager::Theme theme);
    ThemeManager::Theme getLastTheme();

private:
    ConfigManager();
    ~ConfigManager() = default;

    QSettings m_settings;
};

#endif // CONFIGMANAGER_H